const express = require('express')
const router = express.Router()
const logController = require('../controllers/logController')
const auth = require('../middleware/auth')

// 使用认证中间件
router.use(auth)

// 日志路由
router.get('/list', logController.getList)
router.post('/create', logController.create)
router.post('/delete', logController.delete)

module.exports = router 